Version

Dialog(DialogModel,String,String,String,String,Nullable<DialogState>,Nullable<Boolean>,Nullable<Int32>) Method

Helper to configure and render igDialog widget, which supports persistence of state, size, zIndex and position after postback.

Note: if a property is set within DialogModel, then that has priority over client and initial values.
Syntax
'Declaration
 
Public Overloads Function Dialog( _
   ByVal model As DialogModel, _
   ByVal persistenceInputName As System.String, _
   ByVal initialPosition As System.String, _
   ByVal initialWidth As System.String, _
   ByVal initialHeight As System.String, _
   ByVal initialState As System.Nullable(Of DialogState), _
   ByVal initialPinned As System.Nullable(Of Boolean), _
   ByVal initialZIndex As System.Nullable(Of Integer) _
) As System.Web.Mvc.MvcHtmlString
public System.Web.Mvc.MvcHtmlString Dialog( 
   DialogModel model,
   System.string persistenceInputName,
   System.string initialPosition,
   System.string initialWidth,
   System.string initialHeight,
   System.Nullable<DialogState> initialState,
   System.Nullable<bool> initialPinned,
   System.Nullable<int> initialZIndex
)

Parameters

model
Instance of DialogModel
persistenceInputName
The name of hidden INPUT, which will enable persistence from client.
initialPosition
Initial value for position (left, top corner) of dialog on screen. Example: "[200, 300]"
initialWidth
Initial width of dialog
initialHeight
Initial height of dialog
initialState
Initial state of dialog
initialPinned
Initial pinned state of dialog
initialZIndex
Initial ZIndex of dialog

Return Value

String that represents control
Requirements

Target Platforms: Windows 8.1, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

View on GitHub